<template>
	<view class="msg_center">
		<view class="main">
			<view class="list" @click="msgBtn(1)">
				<view class="left">
					<image src="@/static/images/msg_icon1.png" mode=""></image>
					<text>通知消息</text>
				</view>
				<view class="right">
					<u-icon name="arrow-right" color="#BEBEBE" size="28"></u-icon>
				</view>
			</view>
			<view class="list" @click="msgBtn(2)">
				<view class="left">
					<image src="@/static/images/msg_icon2.png" mode=""></image>
					<text>优惠消息</text>
				</view>
				<view class="right">
					<u-icon name="arrow-right" color="#BEBEBE" size="28"></u-icon>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			msgBtn(type){
				if(type==1){
					uni.navigateTo({
						url:'/pages/home/msg_notice'
					})
				}else{
					uni.navigateTo({
						url:'/pages/home/msg_preferential'
					})
				}
			}
		}
	}
</script>

<style lang="less">
	.msg_center{
		width: 100%;
		padding-top: 24rpx;
		.main{
			width: 100%;
			padding: 10rpx 0;
			background: #fff;
		}
		.list{
			width: 100%;
			padding: 0 32rpx;
			height: 120rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			.left{
				display: flex;
				align-items: center;
				image{
					display: block;
					width: 64rpx;
					height: 64rpx;
				}
				text{
					padding-left: 24rpx;
					font-size: 28rpx;
					font-family: PingFang SC-Regular, PingFang SC;
					font-weight: 400;
					color: #222222;
				}
			}
		}
	}
</style>
